package config

import (
	"context"
	mqtt "github.com/eclipse/paho.mqtt.golang"
	"github.com/elastic/go-elasticsearch/v7"
	"github.com/go-redis/redis/v8"
	"go.mongodb.org/mongo-driver/mongo"
	"gorm.io/gorm"
	"net/http"
)

var (
	AppCong           AppConfig              //动态配置
	DB                *gorm.DB               //mysql数据库
	Rdb               *redis.Client          //redis缓存
	Ctx               = context.Background() //上下文联调（redis、mongodb）
	Coll              *mongo.Collection      //mongodb数据库木
	HealthDB          *mongo.Database
	Es                *elasticsearch.Client //es客户端
	CleanedCollection *mongo.Collection     // 清洗后的健康数据集合
	Opts              *mqtt.ClientOptions
	Client            *http.Client //人脸识别
)
